home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
mail.altrad.com
/
2015.02.mail.altrad.com.tar
/
mail.altrad.com
/
TEST
/
office deutch
/
ACCESS.NL-NL
/
ACCLR.CAB
/
ADO210.CHM_0001_1043
/
stylesheets
/
vs70link.js
< prev
Wrap
Text File
|
2006-06-19
|
938b
|
33 lines
writeCSS(scriptPath());
function scriptPath()
{
var col = document.scripts;
return col[col.length - 1].src;
}
function writeCSS(spath)
{
// Get a base CSS name based on the browser.
var css = "vs70_n.css";
if (navigator.appName == "Microsoft Internet Explorer") {
var sVer = navigator.appVersion;
sVer = sVer.substring(0, sVer.indexOf("."));
if (sVer >= 4) {
document.writeln('<SCRIPT FOR="reftip" EVENT=onclick>window.event.cancelBubble = true;</SCRIPT>');
document.writeln('<SCRIPT FOR="cmd_lang" EVENT=onclick>langClick(this);</SCRIPT>');
document.writeln('<SCRIPT FOR="cmd_filter" EVENT=onclick>filterClick(this);</SCRIPT>');
css = "vs70_5.css";
}
else
css = "vs70_5.css";
}
// The CSS is in the same directory as the script.
spath = spath.toLowerCase();
css = spath.replace(/vs70link.js/, css);
document.writeln('<LINK REL="stylesheet" HREF="' + css + '">');
}